/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;
import BO.Iter.NhomBO;
import TableModel.Nhom;
import java.util.List;
import DAO.Iter.NhomDAO;
/**
 *
 * @author vt
 */
public class NhomBOImpl implements NhomBO{

    private NhomDAO nDao;

    public NhomDAO getnDao() {
        return nDao;
    }

    public void setnDao(NhomDAO nDao) {
        this.nDao = nDao;
    }
    
    @Override
    public Long add(Nhom a) {
      return  this.nDao.add(a);
    }

    @Override
    public void edit(Nhom a) {
        nDao.edit(a);
    }

    @Override
    public void delete(Nhom a) {
       nDao.delete(a);
    }

    @Override
    public List<Nhom> findAll() {
       return nDao.findAll();
    }

    @Override
    public List<Nhom> findByMaHP(String maHP) {
       return nDao.findByMaHP(maHP);
    }

    @Override
    public List<Nhom> findByNhom(int nhom) {
        return nDao.findByNhom(nhom);
    }

    @Override
    public Long getMaNhom(String maHp, int nhom) {
        return nDao.getMaNhom(maHp, nhom);
    }
    
}
